Multiple Inheritance - definizione. Che cos'è Multiple Inheritance
Diclib.com
Dizionario ChatGPT
Inserisci una parola o una frase in qualsiasi lingua 👆
Lingua:

Traduzione e analisi delle parole tramite l'intelligenza artificiale ChatGPT

In questa pagina puoi ottenere un'analisi dettagliata di una parola o frase, prodotta utilizzando la migliore tecnologia di intelligenza artificiale fino ad oggi:

  • come viene usata la parola
  • frequenza di utilizzo
  • è usato più spesso nel discorso orale o scritto
  • opzioni di traduzione delle parole
  • esempi di utilizzo (varie frasi con traduzione)
  • etimologia

Cosa (chi) è Multiple Inheritance - definizione

TO HAVE MORE THAN ONE PARENT CLASS
Single inheritance; Diamond problem; Troublesome diamond; Multi-inheritance; Diamond of doom; Diamond of Death; Diamond inheritance; Deadly Diamond of Death; Inheritance diamonds; Inheritance diamond; Diamond dependency
  • A diamond class inheritance diagram.

multiple inheritance         
<programming> In object-oriented programming, the possibility that a sub-class may be derived from multiple parent classes which are themselves not derived one from the other. (1997-08-06)
Multiple inheritance         
Multiple inheritance is a feature of some object-oriented computer programming languages in which an object or class can inherit features from more than one parent object or parent class. It is distinct from single inheritance, where an object or class may only inherit from one particular object or class.
single inheritance         
The property of an object-oriented language which restricts a sub-class to be derived from only one parent. Opposite of multiple inheritance.

Wikipedia

Multiple inheritance

Multiple inheritance is a feature of some object-oriented computer programming languages in which an object or class can inherit features from more than one parent object or parent class. It is distinct from single inheritance, where an object or class may only inherit from one particular object or class.

Multiple inheritance has been a controversial issue for many years, with opponents pointing to its increased complexity and ambiguity in situations such as the "diamond problem", where it may be ambiguous as to which parent class a particular feature is inherited from if more than one parent class implements said feature. This can be addressed in various ways, including using virtual inheritance. Alternate methods of object composition not based on inheritance such as mixins and traits have also been proposed to address the ambiguity.